<template>
  <div class="appointment">
    <appointmentRule v-if="appShow" @switch="switchPage"/>
    <appointmentRecord v-if="!appShow" @switch="switchPage"/>
  </div>
</template>

<script>
  import appointmentRule from './appointmentRule/index.vue'
  import appointmentRecord from './appointmentRecord/index.vue'

  export default {
    name: 'appointment',
    components: { appointmentRule , appointmentRecord },
    data() {
      return {
        appShow: true
      }
    },
    mounted() {

    },
    methods: {
      switchPage(status) {
        this.appShow = status;
      }
    }
  }
</script>

<style scoped>
  .appointment {
    height: 100%;
    width: 100%;
  }


</style>
